package com.example.jacky.android_easeui.demo;

import android.os.Bundle;
import android.support.design.widget.AppBarLayout;

import com.example.jacky.android_easeui.R;
import com.example.jacky.android_easeui.base.BaseActivity;
import com.example.jacky.android_easeui.utils.MyStatusBarUtils;
import com.example.jacky.android_easeui.utils.NativeIncrease;

public class StatusBarActivity extends BaseActivity {
    public static final String TAG = "StatusBarActivity";

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_statusbar);

        MyStatusBarUtils.setTranslucentForCoordinatorLayout(this, 1, true);
        MyStatusBarUtils.setMarginStatusBar(findViewById(R.id.toolbar));
        MyStatusBarUtils.setMarginStatusBar(findViewById(R.id.homePage_toolbar));

        initView();
    }


    private void initView() {

        AppBarLayout layout = (AppBarLayout) findViewById(R.id.homePage_appBarLayout);
        layout.addOnOffsetChangedListener(new NativeIncrease.AppBarStateChangeListener() {
            @Override
            public void onStateChanged(AppBarLayout appBarLayout, int state) {

            }
        });


    }


}
